// 疾病管理
import request from '@/utils/request'

export default{
  /**
   * @description: 添加 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/socialized-expert/diseaseBank/add"
    return request.post(url,params)
  },

  /**
   * @description: 修改 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/socialized-expert/diseaseBank/edit"
    return request.post(url,params)
  },

  /**
   * @description: 删除 *代表必填
   * @param {String/Number} staffId *
   * @return {Object}
   */
   delById(id){
    const url = "/socialized-expert/diseaseBank/delById?id="+id
    return request.get(url)
  },

    /**
   * @description: 批量删除数据项 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
    delListById(idList){
      const url = `/socialized-expert/diseaseBank/delListById?idList=${idList}`
      return request.get(url)
    },

  /**
   * @description: 条件查询 *代表必填
   * @param {String/Number} staffId *
   * @return {Object}
   */
  queryByCondition(params){
    const url = "/socialized-expert/diseaseBank/queryByCondition"
    return request.post(url,params)
  },
  
  /**
   * @description: 分页查询销售订单 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "/socialized-expert/diseaseBank/queryPageByCondition"
    return request.post(url,params)
  },

    /**
   * @description: 判断疾病 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
     judgeDisease(params){
      const url = "/socialized-expert/diseaseBank/judgeDisease"
      return request.post(url,params)
    },
}